using System;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;

namespace E4W
{
	public class UIBalkenDiagramm : UserControl
	{
		private Container components;

		private Label Balken1;

		private Label Balken2;

		private Label Balken3;

		private Label Balken4;

		private Label Balken5;

		private Label Balken6;

		private Label Balken7;

		private Label Balken8;

		private float max = 1f;

		private Label Timer;

		private Label label1;

		private Panel panel2;

		private int balkenbreite;

		private int timer;

		private int bereich;

		private static string[] TimerTextArray = new string[8] { "Propeller Speed [rpm]", "Coolant Temperature [°C]", "Engine Oil Pressure [bar]", "Engine Oil Temperature [°C]", "Gearbox Oil Temperature [°C]", "Battery Voltage [V]", "Atmospheric Pressure [mbar]", "Power Lever Position [%]" };

		private static string[,] BereichsArray = new string[8, 9]
		{
			{ "1850", "1910", "1970", "2030", "2090", "2150", "2210", "2270", "2330" },
			{ "-30", "-11,25", "7,5", "26,25", "45", "63,75", "82,5", "101,25", "120" },
			{ "0", "1", "2", "3", "4", "5", "6", "7", "8" },
			{ "-30", "-8,75", "12,5", "33,75", "55", "76,25", "97,5", "118,75", "140" },
			{ "-30", "-8,75", "12,5", "33,75", "55", "76,25", "97,5", "118,75", "140" },
			{ "16", "18.25", "20.5", "22.75", "25", "27.25", "29.5", "31.75", "34" },
			{ "400", "487,5", "575", "662,5", "750", "837,5", "925", "1012,5", "1100" },
			{ "0", "12,5", "25", "37,5", "50", "62,5", "75", "87,5", "100" }
		};

		private Panel panel3;

		private Label wert4;

		private Label wert1;

		private Label wert8;

		private Label wert2;

		private Label wert7;

		private Label wert3;

		private Label wert6;

		private Label wert5;

		private Label Bereich1;

		private Label Bereich2;

		private Label Bereich3;

		private Label Bereich4;

		private Label Bereich5;

		private Label Bereich6;

		private Label Bereich7;

		private Label Bereich9;

		private Panel panelDiagramm;

		private Label Bereich8;

		public int Max
		{
			get
			{
				return (int)max;
			}
			set
			{
				max = value;
				if (max == 0f)
				{
					max = 0.1f;
				}
			}
		}

		public int TimerText
		{
			get
			{
				return timer;
			}
			set
			{
				timer = value;
				Timer.Text = TimerTextArray[value];
			}
		}

		public int Bereiche
		{
			get
			{
				return bereich;
			}
			set
			{
				bereich = value;
				Bereich1.Text = BereichsArray[bereich, 0];
				Bereich2.Text = BereichsArray[bereich, 1];
				Bereich3.Text = BereichsArray[bereich, 2];
				Bereich4.Text = BereichsArray[bereich, 3];
				Bereich5.Text = BereichsArray[bereich, 4];
				Bereich6.Text = BereichsArray[bereich, 5];
				Bereich7.Text = BereichsArray[bereich, 6];
				Bereich8.Text = BereichsArray[bereich, 7];
				Bereich9.Text = BereichsArray[bereich, 8];
			}
		}

		public int Balkenbreite
		{
			get
			{
				return balkenbreite;
			}
			set
			{
				balkenbreite = value;
				int num = balkenbreite / 3;
				base.Width = balkenbreite * 8 + 4 + 2 * num;
				Balken1.Location = new Point(num, Balken1.Location.Y);
				Balken2.Location = new Point(balkenbreite - 1 + num, Balken2.Location.Y);
				Balken3.Location = new Point((balkenbreite - 1) * 2 + num, Balken3.Location.Y);
				Balken4.Location = new Point((balkenbreite - 1) * 3 + num, Balken4.Location.Y);
				Balken5.Location = new Point((balkenbreite - 1) * 4 + num, Balken5.Location.Y);
				Balken6.Location = new Point((balkenbreite - 1) * 5 + num, Balken6.Location.Y);
				Balken7.Location = new Point((balkenbreite - 1) * 6 + num, Balken7.Location.Y);
				Balken8.Location = new Point((balkenbreite - 1) * 7 + num, Balken8.Location.Y);
				Balken1.Width = balkenbreite;
				Balken2.Width = balkenbreite;
				Balken3.Width = balkenbreite;
				Balken4.Width = balkenbreite;
				Balken5.Width = balkenbreite;
				Balken6.Width = balkenbreite;
				Balken7.Width = balkenbreite;
				Balken8.Width = balkenbreite;
				wert1.Width = balkenbreite;
				wert2.Width = balkenbreite;
				wert3.Width = balkenbreite;
				wert4.Width = balkenbreite;
				wert5.Width = balkenbreite;
				wert6.Width = balkenbreite;
				wert7.Width = balkenbreite;
				wert8.Width = balkenbreite;
				wert1.Location = new Point(num, wert1.Location.Y);
				wert2.Location = new Point(balkenbreite - 1 + num, wert1.Location.Y);
				wert3.Location = new Point((balkenbreite - 1) * 2 + num, wert1.Location.Y);
				wert4.Location = new Point((balkenbreite - 1) * 3 + num, wert1.Location.Y);
				wert5.Location = new Point((balkenbreite - 1) * 4 + num, wert1.Location.Y);
				wert6.Location = new Point((balkenbreite - 1) * 5 + num, wert1.Location.Y);
				wert7.Location = new Point((balkenbreite - 1) * 6 + num, wert1.Location.Y);
				wert8.Location = new Point((balkenbreite - 1) * 7 + num, wert1.Location.Y);
				Bereich1.Width = num + balkenbreite / 2;
				Bereich2.Width = balkenbreite;
				Bereich3.Width = balkenbreite;
				Bereich4.Width = balkenbreite;
				Bereich5.Width = balkenbreite;
				Bereich6.Width = balkenbreite;
				Bereich7.Width = balkenbreite;
				Bereich8.Width = balkenbreite;
				Bereich9.Width = balkenbreite;
				Bereich1.Location = new Point(0, Bereich1.Location.Y);
				Bereich2.Location = new Point(balkenbreite - 1 + num - balkenbreite / 2, Bereich1.Location.Y);
				Bereich3.Location = new Point((balkenbreite - 1) * 2 + num - balkenbreite / 2, Bereich1.Location.Y);
				Bereich4.Location = new Point((balkenbreite - 1) * 3 + num - balkenbreite / 2, Bereich1.Location.Y);
				Bereich5.Location = new Point((balkenbreite - 1) * 4 + num - balkenbreite / 2, Bereich1.Location.Y);
				Bereich6.Location = new Point((balkenbreite - 1) * 5 + num - balkenbreite / 2, Bereich1.Location.Y);
				Bereich7.Location = new Point((balkenbreite - 1) * 6 + num - balkenbreite / 2, Bereich1.Location.Y);
				Bereich8.Location = new Point((balkenbreite - 1) * 7 + num - balkenbreite / 2, Bereich1.Location.Y);
				Bereich9.Location = new Point((balkenbreite - 1) * 8 + num - balkenbreite / 2, Bereich1.Location.Y);
			}
		}

		public int[] Balkenhoehe
		{
			get
			{
				return new int[8] { Balken1.Height, Balken2.Height, Balken3.Height, Balken4.Height, Balken5.Height, Balken6.Height, Balken7.Height, Balken8.Height };
			}
			set
			{
				int num = panelDiagramm.Height - 3;
				int num2 = panelDiagramm.Height - 17;
				Balken1.Location = new Point(Balken1.Location.X, num - (int)((float)value[0] / max * (float)num2));
				Balken2.Location = new Point(Balken2.Location.X, num - (int)((float)value[1] / max * (float)num2));
				Balken3.Location = new Point(Balken3.Location.X, num - (int)((float)value[2] / max * (float)num2));
				Balken4.Location = new Point(Balken4.Location.X, num - (int)((float)value[3] / max * (float)num2));
				Balken5.Location = new Point(Balken5.Location.X, num - (int)((float)value[4] / max * (float)num2));
				Balken6.Location = new Point(Balken6.Location.X, num - (int)((float)value[5] / max * (float)num2));
				Balken7.Location = new Point(Balken7.Location.X, num - (int)((float)value[6] / max * (float)num2));
				Balken8.Location = new Point(Balken8.Location.X, num - (int)((float)value[7] / max * (float)num2));
				Balken1.Height = (int)((float)value[0] / max * (float)num2);
				Balken2.Height = (int)((float)value[1] / max * (float)num2);
				Balken3.Height = (int)((float)value[2] / max * (float)num2);
				Balken4.Height = (int)((float)value[3] / max * (float)num2);
				Balken5.Height = (int)((float)value[4] / max * (float)num2);
				Balken6.Height = (int)((float)value[5] / max * (float)num2);
				Balken7.Height = (int)((float)value[6] / max * (float)num2);
				Balken8.Height = (int)((float)value[7] / max * (float)num2);
				Color baseColor = Color.FromArgb(245, 205, 35);
				Balken1.BackColor = Color.FromArgb((int)((float)value[0] / max * 255f), baseColor);
				Balken2.BackColor = Color.FromArgb((int)((float)value[1] / max * 255f), baseColor);
				Balken3.BackColor = Color.FromArgb((int)((float)value[2] / max * 255f), baseColor);
				Balken4.BackColor = Color.FromArgb((int)((float)value[3] / max * 255f), baseColor);
				Balken5.BackColor = Color.FromArgb((int)((float)value[4] / max * 255f), baseColor);
				Balken6.BackColor = Color.FromArgb((int)((float)value[5] / max * 255f), baseColor);
				Balken7.BackColor = Color.FromArgb((int)((float)value[6] / max * 255f), baseColor);
				Balken8.BackColor = Color.FromArgb((int)((float)value[7] / max * 255f), baseColor);
				int num3 = 20;
				wert1.Location = new Point(wert1.Location.X, panelDiagramm.Height - Balken1.Height - num3);
				wert2.Location = new Point(wert2.Location.X, panelDiagramm.Height - Balken2.Height - num3);
				wert3.Location = new Point(wert3.Location.X, panelDiagramm.Height - Balken3.Height - num3);
				wert4.Location = new Point(wert4.Location.X, panelDiagramm.Height - Balken4.Height - num3);
				wert5.Location = new Point(wert5.Location.X, panelDiagramm.Height - Balken5.Height - num3);
				wert6.Location = new Point(wert6.Location.X, panelDiagramm.Height - Balken6.Height - num3);
				wert7.Location = new Point(wert7.Location.X, panelDiagramm.Height - Balken7.Height - num3);
				wert8.Location = new Point(wert8.Location.X, panelDiagramm.Height - Balken8.Height - num3);
			}
		}

		public string[] Werte
		{
			get
			{
				return new string[8] { Balken1.Text, Balken2.Text, Balken3.Text, Balken4.Text, Balken5.Text, Balken6.Text, Balken7.Text, Balken8.Text };
			}
			set
			{
				if (Balken1.Height > 18)
				{
					Balken1.Text = value[0];
				}
				else
				{
					wert1.Text = value[0];
					wert1.Visible = true;
				}
				if (Balken2.Height > 18)
				{
					Balken2.Text = value[1];
				}
				else
				{
					wert2.Text = value[1];
					wert2.Visible = true;
				}
				if (Balken3.Height > 18)
				{
					Balken3.Text = value[2];
				}
				else
				{
					wert3.Text = value[2];
					wert3.Visible = true;
				}
				if (Balken4.Height > 18)
				{
					Balken4.Text = value[3];
				}
				else
				{
					wert4.Text = value[3];
					wert4.Visible = true;
				}
				if (Balken5.Height > 18)
				{
					Balken5.Text = value[4];
				}
				else
				{
					wert5.Text = value[4];
					wert5.Visible = true;
				}
				if (Balken6.Height > 18)
				{
					Balken6.Text = value[5];
				}
				else
				{
					wert6.Text = value[5];
					wert6.Visible = true;
				}
				if (Balken7.Height > 18)
				{
					Balken7.Text = value[6];
				}
				else
				{
					wert7.Text = value[6];
					wert7.Visible = true;
				}
				if (Balken8.Height > 18)
				{
					Balken8.Text = value[7];
					return;
				}
				wert8.Text = value[7];
				wert8.Visible = true;
			}
		}

		public UIBalkenDiagramm()
		{
			InitializeComponent();
		}

		public void reset()
		{
			Timer.Text = "No data available - read statistics first";
			Bereich1.Text = null;
			Bereich2.Text = null;
			Bereich3.Text = null;
			Bereich4.Text = null;
			Bereich5.Text = null;
			Bereich6.Text = null;
			Bereich7.Text = null;
			Bereich8.Text = null;
			Bereich9.Text = null;
			wert1.Text = null;
			wert2.Text = null;
			wert3.Text = null;
			wert4.Text = null;
			wert5.Text = null;
			wert6.Text = null;
			wert7.Text = null;
			wert8.Text = null;
			wert1.Visible = false;
			wert2.Visible = false;
			wert3.Visible = false;
			wert4.Visible = false;
			wert5.Visible = false;
			wert6.Visible = false;
			wert7.Visible = false;
			wert8.Visible = false;
			Balken1.Height = 0;
			Balken2.Height = 0;
			Balken3.Height = 0;
			Balken4.Height = 0;
			Balken5.Height = 0;
			Balken6.Height = 0;
			Balken7.Height = 0;
			Balken8.Height = 0;
			Balken1.Text = null;
			Balken2.Text = null;
			Balken3.Text = null;
			Balken4.Text = null;
			Balken5.Text = null;
			Balken6.Text = null;
			Balken7.Text = null;
			Balken8.Text = null;
		}

		protected override void Dispose(bool disposing)
		{
			if (disposing && components != null)
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		private void InitializeComponent()
		{
			this.Balken1 = new System.Windows.Forms.Label();
			this.Balken2 = new System.Windows.Forms.Label();
			this.Balken3 = new System.Windows.Forms.Label();
			this.Balken4 = new System.Windows.Forms.Label();
			this.Balken5 = new System.Windows.Forms.Label();
			this.Balken6 = new System.Windows.Forms.Label();
			this.Balken7 = new System.Windows.Forms.Label();
			this.Balken8 = new System.Windows.Forms.Label();
			this.Timer = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.panel2 = new System.Windows.Forms.Panel();
			this.panel3 = new System.Windows.Forms.Panel();
			this.Bereich9 = new System.Windows.Forms.Label();
			this.Bereich8 = new System.Windows.Forms.Label();
			this.Bereich7 = new System.Windows.Forms.Label();
			this.Bereich6 = new System.Windows.Forms.Label();
			this.Bereich1 = new System.Windows.Forms.Label();
			this.Bereich2 = new System.Windows.Forms.Label();
			this.Bereich5 = new System.Windows.Forms.Label();
			this.Bereich3 = new System.Windows.Forms.Label();
			this.Bereich4 = new System.Windows.Forms.Label();
			this.wert4 = new System.Windows.Forms.Label();
			this.wert1 = new System.Windows.Forms.Label();
			this.wert8 = new System.Windows.Forms.Label();
			this.wert2 = new System.Windows.Forms.Label();
			this.wert7 = new System.Windows.Forms.Label();
			this.wert3 = new System.Windows.Forms.Label();
			this.wert6 = new System.Windows.Forms.Label();
			this.wert5 = new System.Windows.Forms.Label();
			this.panelDiagramm = new System.Windows.Forms.Panel();
			this.panel2.SuspendLayout();
			this.panel3.SuspendLayout();
			this.panelDiagramm.SuspendLayout();
			base.SuspendLayout();
			this.Balken1.BackColor = System.Drawing.Color.Transparent;
			this.Balken1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.Balken1.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.Balken1.Location = new System.Drawing.Point(0, 0);
			this.Balken1.Name = "Balken1";
			this.Balken1.Size = new System.Drawing.Size(20, 20);
			this.Balken1.TabIndex = 0;
			this.Balken1.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
			this.Balken2.BackColor = System.Drawing.Color.Transparent;
			this.Balken2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.Balken2.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.Balken2.Location = new System.Drawing.Point(0, 0);
			this.Balken2.Name = "Balken2";
			this.Balken2.Size = new System.Drawing.Size(20, 20);
			this.Balken2.TabIndex = 1;
			this.Balken2.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
			this.Balken3.BackColor = System.Drawing.Color.Transparent;
			this.Balken3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.Balken3.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.Balken3.Location = new System.Drawing.Point(0, 0);
			this.Balken3.Name = "Balken3";
			this.Balken3.Size = new System.Drawing.Size(20, 20);
			this.Balken3.TabIndex = 2;
			this.Balken3.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
			this.Balken4.BackColor = System.Drawing.Color.Transparent;
			this.Balken4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.Balken4.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.Balken4.Location = new System.Drawing.Point(0, 0);
			this.Balken4.Name = "Balken4";
			this.Balken4.Size = new System.Drawing.Size(20, 20);
			this.Balken4.TabIndex = 3;
			this.Balken4.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
			this.Balken5.BackColor = System.Drawing.Color.Transparent;
			this.Balken5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.Balken5.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.Balken5.Location = new System.Drawing.Point(0, 0);
			this.Balken5.Name = "Balken5";
			this.Balken5.Size = new System.Drawing.Size(20, 20);
			this.Balken5.TabIndex = 4;
			this.Balken5.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
			this.Balken6.BackColor = System.Drawing.Color.Transparent;
			this.Balken6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.Balken6.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.Balken6.Location = new System.Drawing.Point(0, 0);
			this.Balken6.Name = "Balken6";
			this.Balken6.Size = new System.Drawing.Size(20, 20);
			this.Balken6.TabIndex = 5;
			this.Balken6.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
			this.Balken7.BackColor = System.Drawing.Color.Transparent;
			this.Balken7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.Balken7.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.Balken7.Location = new System.Drawing.Point(0, 0);
			this.Balken7.Name = "Balken7";
			this.Balken7.Size = new System.Drawing.Size(20, 20);
			this.Balken7.TabIndex = 6;
			this.Balken7.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
			this.Balken8.BackColor = System.Drawing.Color.Transparent;
			this.Balken8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.Balken8.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.Balken8.Location = new System.Drawing.Point(0, 0);
			this.Balken8.Name = "Balken8";
			this.Balken8.Size = new System.Drawing.Size(20, 20);
			this.Balken8.TabIndex = 7;
			this.Balken8.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
			this.Timer.BackColor = System.Drawing.Color.Transparent;
			this.Timer.Dock = System.Windows.Forms.DockStyle.Fill;
			this.Timer.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			this.Timer.Location = new System.Drawing.Point(0, 0);
			this.Timer.Name = "Timer";
			this.Timer.Padding = new System.Windows.Forms.Padding(10, 0, 0, 0);
			this.Timer.Size = new System.Drawing.Size(192, 23);
			this.Timer.TabIndex = 8;
			this.Timer.Text = "Timer 1";
			this.Timer.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.label1.AutoSize = true;
			this.label1.Dock = System.Windows.Forms.DockStyle.Right;
			this.label1.Font = new System.Drawing.Font("Tahoma", 10f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			this.label1.Location = new System.Drawing.Point(192, 0);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(18, 17);
			this.label1.TabIndex = 17;
			this.label1.Text = "X";
			this.label1.Click += new System.EventHandler(label1_Click);
			this.panel2.Controls.Add(this.Timer);
			this.panel2.Controls.Add(this.label1);
			this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
			this.panel2.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.panel2.Location = new System.Drawing.Point(0, 0);
			this.panel2.Name = "panel2";
			this.panel2.Size = new System.Drawing.Size(210, 23);
			this.panel2.TabIndex = 19;
			this.panel3.Controls.Add(this.Bereich9);
			this.panel3.Controls.Add(this.Bereich8);
			this.panel3.Controls.Add(this.Bereich7);
			this.panel3.Controls.Add(this.Bereich6);
			this.panel3.Controls.Add(this.Bereich1);
			this.panel3.Controls.Add(this.Bereich2);
			this.panel3.Controls.Add(this.Bereich5);
			this.panel3.Controls.Add(this.Bereich3);
			this.panel3.Controls.Add(this.Bereich4);
			this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom;
			this.panel3.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.panel3.Location = new System.Drawing.Point(0, 103);
			this.panel3.Name = "panel3";
			this.panel3.Size = new System.Drawing.Size(210, 17);
			this.panel3.TabIndex = 19;
			this.Bereich9.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			this.Bereich9.Location = new System.Drawing.Point(0, 0);
			this.Bereich9.Name = "Bereich9";
			this.Bereich9.Size = new System.Drawing.Size(42, 13);
			this.Bereich9.TabIndex = 8;
			this.Bereich9.Text = "Bereich";
			this.Bereich9.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			this.Bereich8.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			this.Bereich8.Location = new System.Drawing.Point(0, 0);
			this.Bereich8.Name = "Bereich8";
			this.Bereich8.Size = new System.Drawing.Size(42, 13);
			this.Bereich8.TabIndex = 7;
			this.Bereich8.Text = "Bereich";
			this.Bereich8.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			this.Bereich7.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			this.Bereich7.Location = new System.Drawing.Point(0, 0);
			this.Bereich7.Name = "Bereich7";
			this.Bereich7.Size = new System.Drawing.Size(42, 13);
			this.Bereich7.TabIndex = 6;
			this.Bereich7.Text = "Bereich";
			this.Bereich7.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			this.Bereich6.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			this.Bereich6.Location = new System.Drawing.Point(0, 0);
			this.Bereich6.Name = "Bereich6";
			this.Bereich6.Size = new System.Drawing.Size(42, 13);
			this.Bereich6.TabIndex = 5;
			this.Bereich6.Text = "Bereich";
			this.Bereich6.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			this.Bereich1.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			this.Bereich1.Location = new System.Drawing.Point(0, 0);
			this.Bereich1.Name = "Bereich1";
			this.Bereich1.Size = new System.Drawing.Size(42, 13);
			this.Bereich1.TabIndex = 0;
			this.Bereich1.Text = "Bereich";
			this.Bereich1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			this.Bereich2.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			this.Bereich2.Location = new System.Drawing.Point(0, 0);
			this.Bereich2.Name = "Bereich2";
			this.Bereich2.Size = new System.Drawing.Size(42, 13);
			this.Bereich2.TabIndex = 1;
			this.Bereich2.Text = "Bereich";
			this.Bereich2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			this.Bereich5.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			this.Bereich5.Location = new System.Drawing.Point(0, 0);
			this.Bereich5.Name = "Bereich5";
			this.Bereich5.Size = new System.Drawing.Size(42, 13);
			this.Bereich5.TabIndex = 4;
			this.Bereich5.Text = "Bereich";
			this.Bereich5.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			this.Bereich3.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			this.Bereich3.Location = new System.Drawing.Point(0, 0);
			this.Bereich3.Name = "Bereich3";
			this.Bereich3.Size = new System.Drawing.Size(42, 13);
			this.Bereich3.TabIndex = 2;
			this.Bereich3.Text = "Bereich";
			this.Bereich3.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			this.Bereich4.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			this.Bereich4.Location = new System.Drawing.Point(0, 0);
			this.Bereich4.Name = "Bereich4";
			this.Bereich4.Size = new System.Drawing.Size(42, 13);
			this.Bereich4.TabIndex = 3;
			this.Bereich4.Text = "Bereich";
			this.Bereich4.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			this.wert4.BackColor = System.Drawing.Color.Transparent;
			this.wert4.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.wert4.Location = new System.Drawing.Point(3, 53);
			this.wert4.Name = "wert4";
			this.wert4.Size = new System.Drawing.Size(35, 17);
			this.wert4.TabIndex = 12;
			this.wert4.Text = "wert4";
			this.wert4.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			this.wert4.Visible = false;
			this.wert1.BackColor = System.Drawing.Color.Transparent;
			this.wert1.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.wert1.Location = new System.Drawing.Point(3, 53);
			this.wert1.Name = "wert1";
			this.wert1.Size = new System.Drawing.Size(35, 17);
			this.wert1.TabIndex = 9;
			this.wert1.Text = "wert1";
			this.wert1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			this.wert1.Visible = false;
			this.wert8.BackColor = System.Drawing.Color.Transparent;
			this.wert8.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.wert8.Location = new System.Drawing.Point(3, 53);
			this.wert8.Name = "wert8";
			this.wert8.Size = new System.Drawing.Size(35, 17);
			this.wert8.TabIndex = 16;
			this.wert8.Text = "wert8";
			this.wert8.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			this.wert8.Visible = false;
			this.wert2.BackColor = System.Drawing.Color.Transparent;
			this.wert2.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.wert2.Location = new System.Drawing.Point(3, 53);
			this.wert2.Name = "wert2";
			this.wert2.Size = new System.Drawing.Size(35, 17);
			this.wert2.TabIndex = 10;
			this.wert2.Text = "wert2";
			this.wert2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			this.wert2.Visible = false;
			this.wert7.BackColor = System.Drawing.Color.Transparent;
			this.wert7.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.wert7.Location = new System.Drawing.Point(3, 53);
			this.wert7.Name = "wert7";
			this.wert7.Size = new System.Drawing.Size(35, 17);
			this.wert7.TabIndex = 15;
			this.wert7.Text = "wert8";
			this.wert7.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			this.wert7.Visible = false;
			this.wert3.BackColor = System.Drawing.Color.Transparent;
			this.wert3.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.wert3.Location = new System.Drawing.Point(3, 53);
			this.wert3.Name = "wert3";
			this.wert3.Size = new System.Drawing.Size(35, 17);
			this.wert3.TabIndex = 11;
			this.wert3.Text = "wert3";
			this.wert3.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			this.wert3.Visible = false;
			this.wert6.BackColor = System.Drawing.Color.Transparent;
			this.wert6.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.wert6.Location = new System.Drawing.Point(3, 53);
			this.wert6.Name = "wert6";
			this.wert6.Size = new System.Drawing.Size(35, 17);
			this.wert6.TabIndex = 14;
			this.wert6.Text = "wert6";
			this.wert6.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			this.wert6.Visible = false;
			this.wert5.BackColor = System.Drawing.Color.Transparent;
			this.wert5.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.wert5.Location = new System.Drawing.Point(3, 53);
			this.wert5.Name = "wert5";
			this.wert5.Size = new System.Drawing.Size(35, 17);
			this.wert5.TabIndex = 13;
			this.wert5.Text = "wert5";
			this.wert5.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			this.wert5.Visible = false;
			this.panelDiagramm.Controls.Add(this.Balken8);
			this.panelDiagramm.Controls.Add(this.Balken7);
			this.panelDiagramm.Controls.Add(this.Balken6);
			this.panelDiagramm.Controls.Add(this.Balken5);
			this.panelDiagramm.Controls.Add(this.Balken4);
			this.panelDiagramm.Controls.Add(this.Balken3);
			this.panelDiagramm.Controls.Add(this.Balken2);
			this.panelDiagramm.Controls.Add(this.Balken1);
			this.panelDiagramm.Controls.Add(this.wert4);
			this.panelDiagramm.Controls.Add(this.wert5);
			this.panelDiagramm.Controls.Add(this.wert6);
			this.panelDiagramm.Controls.Add(this.wert3);
			this.panelDiagramm.Controls.Add(this.wert7);
			this.panelDiagramm.Controls.Add(this.wert2);
			this.panelDiagramm.Controls.Add(this.wert8);
			this.panelDiagramm.Controls.Add(this.wert1);
			this.panelDiagramm.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panelDiagramm.Font = new System.Drawing.Font("Tahoma", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.panelDiagramm.Location = new System.Drawing.Point(0, 23);
			this.panelDiagramm.Name = "panelDiagramm";
			this.panelDiagramm.Size = new System.Drawing.Size(210, 80);
			this.panelDiagramm.TabIndex = 20;
			this.panelDiagramm.Paint += new System.Windows.Forms.PaintEventHandler(panelDiagramm_Paint);
			base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
			base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.BackColor = System.Drawing.Color.Transparent;
			base.Controls.Add(this.panelDiagramm);
			base.Controls.Add(this.panel3);
			base.Controls.Add(this.panel2);
			this.Font = new System.Drawing.Font("Tahoma", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			base.Name = "UIBalkenDiagramm";
			base.Size = new System.Drawing.Size(210, 120);
			this.panel2.ResumeLayout(false);
			this.panel2.PerformLayout();
			this.panel3.ResumeLayout(false);
			this.panelDiagramm.ResumeLayout(false);
			base.ResumeLayout(false);
		}

		private void label1_Click(object sender, EventArgs e)
		{
			base.Visible = false;
		}

		private void panelDiagramm_Paint(object sender, PaintEventArgs e)
		{
			int num = balkenbreite / 3;
			Pen pen = new Pen(SystemColors.WindowText, 1f);
			AdjustableArrowCap customEndCap = new AdjustableArrowCap(4f, 6f);
			pen.CustomEndCap = customEndCap;
			e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
			e.Graphics.DrawLine(pen, num, panelDiagramm.Height - 4, num, 0);
			e.Graphics.DrawLine(pen, num, panelDiagramm.Height - 4, panelDiagramm.Width - num, panelDiagramm.Height - 4);
			Pen pen2 = new Pen(SystemColors.WindowText, 1f);
			e.Graphics.DrawLine(pen2, balkenbreite - 1 + num, panelDiagramm.Height - 1, balkenbreite - 1 + num, panelDiagramm.Height - 4);
			e.Graphics.DrawLine(pen2, (balkenbreite - 1) * 2 + num, panelDiagramm.Height - 1, (balkenbreite - 1) * 2 + num, panelDiagramm.Height - 4);
			e.Graphics.DrawLine(pen2, (balkenbreite - 1) * 3 + num, panelDiagramm.Height - 1, (balkenbreite - 1) * 3 + num, panelDiagramm.Height - 4);
			e.Graphics.DrawLine(pen2, (balkenbreite - 1) * 4 + num, panelDiagramm.Height - 1, (balkenbreite - 1) * 4 + num, panelDiagramm.Height - 4);
			e.Graphics.DrawLine(pen2, (balkenbreite - 1) * 5 + num, panelDiagramm.Height - 1, (balkenbreite - 1) * 5 + num, panelDiagramm.Height - 4);
			e.Graphics.DrawLine(pen2, (balkenbreite - 1) * 6 + num, panelDiagramm.Height - 1, (balkenbreite - 1) * 6 + num, panelDiagramm.Height - 4);
			e.Graphics.DrawLine(pen2, (balkenbreite - 1) * 7 + num, panelDiagramm.Height - 1, (balkenbreite - 1) * 7 + num, panelDiagramm.Height - 4);
			e.Graphics.DrawLine(pen2, (balkenbreite - 1) * 8 + num, panelDiagramm.Height - 1, (balkenbreite - 1) * 8 + num, panelDiagramm.Height - 4);
		}
	}
}
